<template>
<div>
    <h1>详情</h1>
    <div>
      <!-- <el-table
    :data="userList"
    border
    style="width: 100%"
    center>
    <el-table-column
      fixed
      prop="uname"
      label="用户名"
      width="150">
    </el-table-column>
    <el-table-column
      fixed
      prop="upwd"
      label="密码"
      width="150">
    </el-table-column>
    <el-table-column
      fixed
      prop="ujpg"
      label="图片"
      width="500">
      
      <img :src="'/project/html/img/'+ujpg" width="200" height="280"><br> 
    </el-table-column> -->
      <!-- </el-table> -->
       <div style="display: flex">
       <div  style="margin-left: 150px" v-for="user in userList" :key="user.pkUserid">
              <!-- <img :src="product.productImg"><br> -->
             
              姓名：<span>{{user.uname}}</span><br> 
              密码：<span>{{user.upwd}}</span><br>
              头像：<img :src="'/project/html/img/'+user.ujpg" width="200" height="280"><br> 
          </div>
       </div>
    </div>
</div>

</template>

<script>
export default {
   data(){
        return {
             userList:[]
        }
    },
    methods:{
          async findAll(){
                var user = await this.ajax.getSubmit("/project/users")
                this.userList=user
                alert(JSON.stringify(this.userList))
        }
    },
     created(){
         this.findAll()
         
         

    }
}
</script>

<style>

</style>